<?php if ($this->auth->logged_in()): // Logged in?>
	<div class="userinfo">
		<strong>Hi, <?=$this->auth->fracs->username()?></strong>
		<ul>
			<li><?=anchor('user/logout', 'Logout')?> |</li>
			<li><?=anchor('stats/player/'.$this->auth->id(), 'My Stats')?> |</li>
			<li><?=anchor('user/update_ip', 'Update IP')?> |</li>
		</ul>
	</div>
<?php else: // Not logged in?>
	<div class="userinfo">
		<strong>Hi, Guest</strong>
		<ul>
			<li><a href="#" class="login_btn">Login</a> |</li>
			<li><a href="http://fracs.net/bbs/ucp.php?mode=register" target="_blank">Register</a></li>
		</ul>
	</div>
	<div class="userinfo login">
		<strong>Username &amp; Password</strong>
		<?= form_open('user/login') ?>
			<input type="text" name="user" value="" />
			<input type="password" name="pass" value="" />
			<input type="submit" class="button" name="submit" value="Login" />
		</form>
	</div>
<?php endif; ?>